#ifndef __THREADGUARD__
#define __THREADGUARD__

#include <thread>

using std::thread;

typedef std::thread Thread;

class Threadguard
{
public:
	explicit Threadguard(Thread &_t)
		: t(_t)
	{}

private:
	Thread &t;
};

#endif // !__THREADGUARD__
